package com.example;

import com.example.controller.DownloadController;
import com.example.vo.DownloadVO;

import java.io.File;

import static com.example.controller.DownloadController.saveUrlAs;

public class test {

    public static void main(String[] args)
    {
        DownloadVO downloadVO = new DownloadVO();
        downloadVO.setFilePath("H:/img/");
        downloadVO.setMethod("GET");
        downloadVO.setUrl("https://qfxtest.oss-cn-beijing.aliyuncs.com/0d8d17a0-e05e-415c-ae2e-7bee4c3ffd3e.txt");
        downloadVO.setName("123456789.txt");
        DownloadController downloadController = new DownloadController();
        downloadController.saveUrlAs(downloadVO);
    }
}
